import { AmapMercatorTilingScheme } from './Q3D_JS_AmapTilingScheme'

import * as Cesium from 'cesium';

class AmapImageryProvider extends Cesium.UrlTemplateImageryProvider {
  constructor(options = {}) {
    if (options.crs === 'WGS84') {
      options.tilingScheme = new AmapMercatorTilingScheme()
    }
    super(options)
  }
}

export { AmapImageryProvider }
